package tedu.study.ooday07;

public class InnerClassDemo {
    public static void main(String[] args) {
        Mama m = new Mama();
        //Mama.Baby b = new Mama.Baby();
        //Baby b = new Baby();
        m.create().show();

    }
}

class Mama{
    private String name;
    private int age;

    Baby create(){
        Baby b = new Baby();
        return b;
    }

    class Baby{

        void show(){
            System.out.println(name);
            System.out.println(Mama.this.age);
        }

    }

}
